package com.xiejun.aop;

import com.spring.annotation.Aspect;
import com.spring.annotation.Component;
import com.spring.annotation.Before;
import com.spring.annotation.After;

@Aspect
@Component
public class LogAspect {
    
    @Before("execution(* com.xiejun.service.*.*(..))")
    public void before() {
        System.out.println("Method execution before advice");
    }
    
    @After("execution(* com.xiejun.service.*.*(..))")
    public void after() {
        System.out.println("Method execution after advice");
    }
}